<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>">
<title><s:text name="sys.app_title" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../include/contentheader.jsp"%>
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="css/main.css"/>
</head>
<body class="ContentBody">
	<form action="${pageContext.request.contextPath}/updateDepartment.action" method="post">
	<div class="MainDiv">
	<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
		<tr>
			<th class="tablestyle_title" >修改部门信息录入</th>
		</tr>
		<tr>
		    <td class="CPanel">
				<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
				<tr>		
				   <td width="100%">
					  	<fieldset style="height:100%;">
						<legend>部门信息</legend>			      
							<table align="center" border="0" cellpadding="2" cellspacing="1" style="width:100%">
							  <tr>
							  	<td>
							  	<input type="hidden" name="department.depid" value="<s:property value='department.depid'/>"/>
							  	部门名称：<input type="text" name="department.depname" value="<s:property value='department.depname'/>" />
							  	</td>		
							  </tr>
							  <tr>
							  	<td>
							  	部门简称：<input type="text" name="department.depsimplename" value="<s:property value='department.depsimplename'/>" />
							  	</td>						  							  	
							  </tr>
							  <tr>
							  	<td>
							  	经办人：
							  	<s:iterator value="department.staffs">
					            	<s:if test='jbr=="Y"'><s:property value="staname"/></s:if>
					            </s:iterator>
							  	</td>
							  </tr>
							  <tr>
							  	<td>
							  	负责人：
							  	<s:iterator value="department.staffs">
					            	<s:if test='fzr=="Y"'><s:property value="staname"/></s:if>
					            </s:iterator>
							  	</td>
							  </tr>
							  <tr>
							  	<td>
							  	<input type="hidden" name="department.depparentid" value="<s:property value='department.depparentid'/>" />
							  	</td>						  							  	
							  </tr>
							  <tr>
							  	<td>
							  	部门状态：
							  	<s:if test='department.depstatus=="D"'>
							  		<input type="radio" id="dsd" name="department.depstatus" value="D" checked="checked" /><label for="dsd">弃用</label>
							  		<input type="radio" id="dsa" name="department.depstatus" value="A" /><label for="dsa">在用</label>
							  	</s:if>
							  	<s:else>
							  		<input type="radio" id="dsd" name="department.depstatus" value="D" /><label for="dsd">弃用</label>
							  		<input type="radio" id="dsa" name="department.depstatus" value="A" checked="checked" /><label for="dsa">在用</label>
							  	</s:else>
							  	</td>						  							  	
							  </tr>
							</table>
					  		<br />
						</fieldset>	
					</td>
				</tr>
				</table>
			</td>
		</tr>			
		<tr>
			<td colspan="3" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" />　
			<input type="button" name="Submit2" value="返回" onclick="window.history.go(-1);"/>
			</td>
		</tr> 
	</table>
	</div>
	</form>
</body>
</html>